import request from '../request.js'

const Api_public = {
	//版本
	version: function() {
		return request({
			url: '/version',
			method: 'GET'
		})
	},
	//广告列表
	advertisementsList: function(data) {
		return request({
			url: '/advertisements',
			method: 'GET',
			data: data
		})
	},
	//文章列表
	articlesList: function(data) {
		return request({
			url: '/articles',
			method: 'GET',
			data: data
		})
	},
	//文章详情
	articlesShow: function(data) {
		return request({
			url: '/articles/show',
			method: 'GET',
			data: data
		})
	},
	//搜索作品
	worksSearch: function(data) {
		return request({
			url: '/works/search',
			method: 'GET',
			data:data
		})
	},
	//搜索系列
	seriesSearch: function(data) {
		return request({
			url: '/series/search',
			method: 'GET',
			data:data
		})
	},
	//搜索作者
	authorSearch: function(data) {
		return request({
			url: '/user/search',
			method: 'GET',
			data:data
		})
	},
	//活动详情 
	activityShow: function(data) {
		return request({
			url: '/activity/show',
			method: 'GET',
			data:data
		})
	},
	//拥有数量
	activityHad: function(data) {
		return request({
			url: '/activity/works/had',
			method: 'GET',
			data:data
		})
	},
	//合成
	activityMake: function(data) {
		return request({
			url: '/activity/works/make',
			method: 'POST',
			data:data
		})
	},
	//文章分类
	articlesType: function(data) {
		return request({
			url: '/articles/types',
			method: 'GET',
			data:data
		})
	},
	//活动列表
	activityList: function(data) {
		return request({
			url: '/activity',
			method: 'GET',
			data:data
		})
	},
	//客服消息列表
	messages: function(data) {
		return request({
			url: '/messages',
			method: 'GET',
			data:data
		})
	},
	//发送消息
	messagesSend: function(data) {
		return request({
			url: '/messages/send',
			method: 'POST',
			data:data
		})
	},
}


export default Api_public